namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 班次管理
    /// </summary>
    [SugarTable("shift_config")]
    public class ShiftConfig : BaseEntity
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public int Id { get; set; }

        /// <summary>
        /// 产线代号
        /// </summary>
        [SugarColumn(ColumnName = "line_code")]
        public string LineCode { get; set; }

        /// <summary>
        /// 班次信息（morning：早班，middle：中班，night：晚班）
        /// </summary>
        [SugarColumn(ColumnName = "shift_name")]
        public string ShiftName { get; set; }

        /// <summary>
        /// 班次开始时间
        /// </summary>
        [SugarColumn(ColumnName = "shift_start_time")]
        public string ShiftStartTime { get; set; }

        /// <summary>
        /// 班次结束时间
        /// </summary>
        [SugarColumn(ColumnName = "shift_end_time")]
        public string ShiftEndTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "creation_time")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "creator_name")]
        public string CreatorName { get; set; }

        /// <summary>
        /// 软删除（1-启用 0-弃用）
        /// </summary>
        [SugarColumn(ColumnName = "is_enabled")]
        public string IsEnabled { get; set; }
    }
}